home *** CD-ROM | disk | FTP | other *** search
- // DOTBOX.C
-
- #include <stdio.h> // include files here
- #include <dos.h>
-
- void main(void); // function prototype
-
- void // program start
- main()
- {
- union REGS i_regs,o_regs;
- int row,column;
- for(row=5;row<=16;row++) // 01 start
- { // 02 row loop
- i_regs.h.ah = 2; // 03 mv cur fun
- i_regs.h.bh = 0; // 03 on page 0
- i_regs.h.dh = (char)row; // 05 on row val
- i_regs.h.dl = 5; // 06 column 5
- int86(0x10,&i_regs,&o_regs); // 07 via BIOS
- for(column=5;column<=60;column++) // 08 start
- { // 09 col loop
- i_regs.h.ah = 0x0E; // 10 print char fun
- i_regs.h.bh = 0; // 11 on page 0
- i_regs.h.al = '.'; // 12 on row value
- int86(0x10,&i_regs,&o_regs); // 13 via BIOS
- } // 14 end col loop
- } // 15 end row loop
- }